package design.mode.composite.item3;

/**
 * @author ZhongMingde on 2021/11/4
 */

public abstract class HumanResource {

  protected long id;
  protected double salary;

  public HumanResource(long id) {
    this.id = id;
  }

  public long getId() {
    return id;
  }

  public abstract double calculateSalary();

}
